<!--{include /service/service_head}-->

<!-- End #sidebar -->
	<div id="main-content">
		<!-- Main Content Section with everything -->

		<!-- Page Head -->
		<!-- End .clear -->
		<form action="/service/staffWorkList.php" id="indexform" method="get">
		<div class="search_box clearfix">
			<label class="clearfix"><span>店舗：</span>
				<select name="shop_id" class="small-input">
			        <option value="0">選択してください</option>
					${Utility::Option(Utility::OptionArray($shopList, 'id', 'shop_name'), $defaultShopId)}
			    </select>
			</label><br />
			<label class="clearfix"><span>&nbsp;</span>
				
				<input type="text" name="search_date" value="${date("Y-m-d", $startTime)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate">
     			 ～
			    <input type="text" name="" value="${date("Y-m-d", $endTime)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate"/>
			    <select name="time_type" class="small-input">
			    	<option value="0">選択してください</option>
					${Utility::Option($timeTypeList, $timeType)}
			    </select>
			</label><br />
			<input type="submit" name="" value="検索" class="button"/>
		</div>
		</form>
		<div class="content-box">
			<!-- Start Content Box -->
			<div class="content-box-header">
				<h3>臨時休み（スタッフ別）</h3>
				<ul class="content-box-tabs" style="display:none;">

					<li><a href="#tab1" class="default-tab">详细</a></li>
					<!-- href must be unique and match the id of target div -->
					<li><a href="#tab2">编辑</a></li>
				</ul>
				<div class="clear"></div>
			</div>
			<!-- End .content-box-header -->
			<div class="content-box-content">

				<div class="tab-content default-tab" id="tab1">
					<!-- This is the target div. id must match the href of this div's tab -->
					<div class="table_box">
						<table>
						<thead class="title_head">
							<tr>
								<th class="title">スタッフ名</th>
								<!--{loop $interval $index $one}-->
						        <th class="title"> ${date("Y-m-d", $startTime + $index * 24 *3600)} </th>
						        <!--{/loop}-->
							</tr>
						</thead>
						<tbody>
							<!--{loop $staffList $index $one}-->
							<tr>
								<td>{$one['family_name']} {$one['personal_name']}</td>
								<!--{loop $workDayList[$one['id']] $index1 $one1}-->
								<td>
								<!--{if ($one1['start_time'] != null) }--> 
						          (勤務時間)${date("H:i", $one1['start_time'])}--
						          ${date("H:i", $one1['end_time'])}<br/>
						        <!--{else}--> 
								  (勤務時間)なし<br/>
						        <!--{/if}--> 
						        <!--{if $absenceDayList[ $one['id'] ][$index1] != null}--> 
						          (臨時休み)${date("H:i", $absenceDayList[ $one['id'] ][$index1]['start_time'])}--
						          ${date("H:i", $absenceDayList[ $one['id'] ][$index1]['end_time'])}<br/>
						        <!--{else}--> 
						          (臨時休み)なし<br/>
						        <!--{/if}--> 
								</td>
								<!--{/loop}-->
							</tr>
							<!--{/loop}-->
							
						</tbody>
					</table>
					</div>

					<p class="bottom_m"><a href="{$searchUrl}&response_type=print" target="_blank">印刷する</a></p>
					<div>
					<table>
							<tr>
								<td colspan="7"><div class="pagination"> <a href="#" title="First Page">&laquo; First</a><a href="#" title="Previous Page">&laquo; Previous</a> <a href="#" class="number" title="1">1</a> <a href="#" class="number" title="2">2</a> <a href="#" class="number current" title="3">3</a> <a href="#" class="number" title="4">4</a> <a href="#" title="Next Page">Next &raquo;</a><a href="#" title="Last Page">Last &raquo;</a> </div>

									<!-- End .pagination -->
									<div class="clear"></div></td>
							</tr>
							</table>
					</div>
				</div>
			</div>
			<!-- End .content-box-content -->
		</div>

		<!-- End .content-box -->
		<!-- End .content-box -->
		<!-- End .content-box -->
		<div class="clear"></div>
		<!-- Start Notifications -->
		<!-- End Notifications -->
		<div id="footer"> <small>
			<!-- Remove this notice or replace it with whatever you want -->

			&#169; Copyright 2011 川崎エステ　エレガントリゾート　すべての女性を美しく幸せに | Powered by <a href="#">ZHONGHUA</a> | <a href="#">Top</a> </small> </div>
		<!-- End #footer -->
	</div>
	<!-- End #main-content -->
</div>

</body>
<!-- Download From www.exet.tk-->
</html>
<script type="text/javascript"> 
function test(val){
	val = eval("(" +  val + ")");
	if( val.error == 0 ){
		alert( "追加しました" );
	}
}
	jQuery(function(){
		$("select[name='shop_id']").bind("change", function(){
			
			$("#indexform").submit();
		});
		new AjaxFormManager($("form[name='addWorkTime']"));
	});
</script>
</html>
